project(i_lib)
cmake_minimum_required(VERSION 2.8)
set(IDL_ILIB_VERSION_MAJOR 0)
set(IDL_ILIB_VERSION_MINOR 1)
set(CMAKE_CXX_FLAGS "-fPIC ${CMAKE_CXX_FLAGS} -O2 -DNDEBUG")

add_subdirectory(algorithm)
add_subdirectory(clustering)
add_subdirectory(core)
add_subdirectory(da)
add_subdirectory(features)
add_subdirectory(geometry)
add_subdirectory(ip)
add_subdirectory(numeric)
add_subdirectory(optimize)
add_subdirectory(range)
add_subdirectory(stereo)
add_subdirectory(vis)
add_subdirectory(pc)

add_library(${PROJECT_NAME} ${IDL_BUILD_TYPE} 
    $<TARGET_OBJECTS:ilib_features> $<TARGET_OBJECTS:ilib_ground>)
